<%@ page contentType="text/html" pageEncoding="UTF-8"%>
<%@ include file="../header.jsp"%>
<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>${systemName }</title>
    <link rel="shortcut icon" href="${contextPath}/resources/favicon.ico"> 
    <link href="${contextPath}/resources/css/bootstrap.min.css?v=3.3.6" rel="stylesheet">
    <link href="${contextPath}/resources/css/font-awesome.min.css?v=4.4.0" rel="stylesheet">
    <!-- Data Tables -->
    <link href="${contextPath}/resources/css/plugins/dataTables/dataTables.bootstrap.css" rel="stylesheet">
    <link href="${contextPath}/resources/css/animate.min.css" rel="stylesheet">
    <link href="${contextPath}/resources/css/style.min.css?v=4.1.0" rel="stylesheet">
</head>
<body class="gray-bg">
    <div class="wrapper wrapper-content animated fadeInRight">
     <div class="ibox-content">
        <form action="${contextPath}/system/tixian/list" class="form-horizontal" name="searchFrom"> 
        <div class="row">
            <div class="col-sm-12">
                <div class="ibox float-e-margins">
                    <div class="ibox-content">
                        <table class="table table-striped table-hover dataTables-example">
                            <thead>
                                <tr>
                                    <th>ID</th>
                                    <th>用户id</th>
                                    <th>提现人</th>
                                    <th>提现银行卡号</th>
                                    <th>提现银行</th>
                                    <th>提现数目</th>
                                    <th>状态</th>
                                    <th>操作</th>
                                </tr>
                            </thead>
                            <tbody>
	                            <c:forEach items="${page.resultRows}" var="tixian" varStatus="vs">  
								        <tr>  
								             <td>${tixian.id}</td>  
								             <td>${tixian.userId}</td>  
								             <td>${tixian.name}</td>  
								             <td>${tixian.cardNo}</td>  
								             <td>${tixian.bankName}</td>
								             <td>${tixian.amount}</td> 
								             <td>
							                  <c:choose> 
									            <c:when test="${tixian.status  eq 0}"> 等待提现</c:when> 
									            <c:when test="${tixian.status  eq 1}">提现完成</c:when> 
									          </c:choose>
										     </td>
										     <td>
							                  <c:choose> 
									            <c:when test="${tixian.status  eq 0}">
									            	<a href="${contextPath}/system/tixian/complete/${tixian.id}" class="btn btn-primary">完成提现</a>
									            </c:when> 
									          </c:choose>
										     </td>  
								         </tr>  
								</c:forEach>
                            </tbody>
                        </table>
                    </div>
                </div>
            </div>
        </div>
        <jsp:include page="../page.jsp">
              <jsp:param value="searchFrom" name="formName" />
        </jsp:include>
        </form>
        </div>
    </div>
    <script src="${contextPath}/resources/js/jquery.min.js?v=2.1.4"></script>
    <script src="${contextPath}/resources/js/bootstrap.min.js?v=3.3.6"></script>
    <script src="${contextPath}/resources/js/plugins/jeditable/jquery.jeditable.js"></script>
    <script src="${contextPath}/resources/js/plugins/dataTables/jquery.dataTables.js"></script>
    <script src="${contextPath}/resources/js/plugins/dataTables/dataTables.bootstrap.js"></script>
    <script src="${contextPath}/resources/js/content.min.js?v=1.0.0"></script>
    <script>
        //$(document).ready(function(){$(".dataTables-example").dataTable();var oTable=$("#editable").dataTable();oTable.$("td").editable("../example_ajax.php",{"callback":function(sValue,y){var aPos=oTable.fnGetPosition(this);oTable.fnUpdate(sValue,aPos[0],aPos[1])},"submitdata":function(value,settings){return{"row_id":this.parentNode.getAttribute("id"),"column":oTable.fnGetPosition(this)[2]}},"width":"90%","height":"100%"})});function fnClickAddRow(){$("#editable").dataTable().fnAddData(["Custom row","New row","New row","New row","New row"])};
    </script>
</body>
</html>
